import request from '@/utils/system/request.js'

/*
 登录
 /user/login
 /user/loginError
 */
export function loginApi(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data,
  })
}

// 退出
export function logoutApi(data) {
  return request({
    url: '/user/logout',
    method: 'post',
    data,
  })
}
